package com.mmd.manage.dao;

import com.mmd.common.entity.MmdUser;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserDao {
	int insert(MmdUser record);

	MmdUser selectByPrimaryKey(Long uid);

	int updateByPrimaryKeySelective(MmdUser record);

	List<MmdUser> selectByKeySelective(MmdUser record);

	int updateByPrimaryKey(MmdUser record);

	MmdUser getUserByAccount(@Param("account")String account);
	
	int insertUser(MmdUser user);
	
	MmdUser getUserByUid(long uid);

	List<MmdUser> getAdminUserListPage(@Param("start") int start, @Param("pageSize")int pageSize);

	int getAdminUserListPageTotal();

	int getAccountNumber(@Param("account")String account);

	int getByCompanyName(@Param("uid")Long uid, @Param("companyName")String companyName);
}
